{extend name="layout_modal" /}
{block name="content"}
<section class="content" style="padding-top:0px;">
    <div class="row">
        <div class="box">
            <form role="form" action="{:url('data_save')}">
                <div class="box-body">
                    <div class="form-group">
                        <label for="exampleInputEmail1">商品分类名称</label>
                        <input type="text" class="form-control" placeholder="商品名称" name="title">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">上级分类</label>
                        <select class="form-control" name="pid">
                            <option value="">顶级分类</option>
                            {volist name=":get_model_func('GoodsCate','list_data',['pid'=>0])" id="v"}
                                <option value="{$v.id}">{$v.title}</option>
                            {/volist}
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail1">商品分类图片</label>
                        <div class="input-group input-group-sm">
                            <input type="text" class="form-control" name="thumb" id="thumb_text">
                            <span class="input-group-btn">
                                <input id="thumb" class="upload_picker" type="file" btnTxt="上传图片">
                            </span>
                        </div>
                        <div id="queue_thumb"></div>
                    </div>
                    <!-- <div class="form-group">
                        <label for="exampleInputEmail1">状态</label>
                        <input type="radio" name="status" value="1" style="margin-left: 15px;" checked> 开启
                        <input type="radio" name="status" value="0" style="margin-left: 15px;"> 关闭
                    </div> -->
                     
                </div>
            </form>
        </div>
    </div>
</section>
{/block}